<?php
	session_start();
	ob_start();
	date_default_timezone_set('Asia/Ho_Chi_Minh');
	
	include_once "../configuration.php";
	include_once "../classes/thuvienham.php";
	$sc = new SystemConfig();
?>

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title><?php echo $sc->TenTrangWeb;?></title>
		<link rel="stylesheet" type="text/css" href="../css/style.css" />
		<script type="text/javascript" src="../js/javascript.js"></script>
		<script src="../js/jquery-1.9.1.js"></script>
		<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
		<script type="text/javascript" src="../ckeditor/sample.js"></script>
		<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
		<script src='../js/jquery.min.js' type='text/javascript'></script>
		<style type="text/css">
			#toppage1k {
				width:100px;
				text-align:center;
				padding:5px;
				position:fixed;
				bottom:10px;right:10px;
				cursor:pointer;
				text-decoration:none;
			}
		</style>
		<link rel="stylesheet" href="../css/jquery-ui.css" />
		<script src="../js/jquery-1.9.1.js"></script>
		<script src="../js/jquery-ui.js"></script>
		<script>
			$(function() {
				$( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd' });
			});
		</script>
		<a href="#" id="toppage1k"><img src='../data/toppage.png' alt='' style='border:0;'/></a>

		<script type='text/javascript'>
			$(function(){
				$.fn.scrollToTop=function(){$(this).hide().removeAttr("href");
				if($(window).scrollTop()!="0")
				{
					$(this).fadeIn("slow")
				}
				var scrollDiv=$(this);
				$(window).scroll(function(){
					if($(window).scrollTop()=="0")
					{
						$(scrollDiv).fadeOut("slow")
					}
					else{$(scrollDiv).fadeIn("slow")}
				});
				$(this).click(function(){
					$("html, body").animate({scrollTop:0},"slow")
				})}
			});
			$(function() {
			$("#toppage1k").scrollToTop();
			});
		</script>
	</head>
	<body>
		<div id="wrapper">
			<div class="login">
				<?php
					include_once "../module/loginad.php";
				?>
			</div>
		</div>
	</body>
</html>
<style type="text/css">
	html, body {
		height: 100%;
		margin: 0;
	}
</style>